package com.example.spzx.Mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserRoleMapper {
    @Select("select role_id from sys_user_role where user_id=#{id}")
    List<Integer> getbyid(Integer id);
@Delete("delete from sys_user_role where user_id=#{userId}")
    void deletebyuserid(Long userId);

    void insert(Long userId, Long id);
}
